from flask import Flask, request, jsonify
import json
from flask_cors import CORS

app = Flask(__name__)
CORS(app)


@app.route('/rpc/createTask', methods=['GET', 'POST'])
def getMapInfoq():
    args = request.get_data()
    print(args)
    ret = {
        "code": 200,
        "msg": "success"
    }

    return ret


@app.route('/checkALLEQ/close', methods=['GET', 'POST'])
def checkALLEQclose():
    args = request.get_data()
    print(args)
    ret = {
        "data": {
        },
        "meta": {
            "msg": "关闭充电检测成功",
            "status": 200
        }
    }
    return ret


if __name__ == "__main__":
    app.run(host="127.0.0.1", port="6666", debug=False)
